package com.terrace.core.constant;

import java.util.Locale;

import org.springframework.context.MessageSource;

/**
 * 状态码资源
 * 
 * @author jiangyg
 *
 */
public class StatusConstant {

	private static MessageSource statusSources;

	public static MessageSource getStatusSources() {
		return statusSources;
	}

	public static void setStatusSources(MessageSource statusSources) {
		StatusConstant.statusSources = statusSources;
	}

	public static String message(String status, Object... params) {
		return statusSources.getMessage(status, params, Locale.CHINA);
	}

}
